class CreateQuestionnaireNames < ActiveRecord::Migration
	def self.up
		create_table :questionnaire_names do |t|
			t.column :name, :string, :null => false
			t.timestamps
		end
		
		QuestionnaireName.all_names.values.each do |q|
			QuestionnaireName.create :name => q
		end
	end
	
	def self.down
		drop_table :questionnaire_names
	end
end
